<template>
  <div class=''>
      <div>
        <emit></emit>
        <on></on>
      </div>
  </div>
</template>

<script>
import Emit from './emit.vue'
import On from './on.vue'
export default {
  name: 'MyComponent',
  props: { },
  components: {
    Emit, On
  },
  data () {
    return { }
  },
  methods: {
    abc (num) {
      if (num === 1) { return 1 }
      return num + this.abc(num - 1)
    }

  },
  computed: { },
  created () {
    this.abc(100)
    console.log(this.abc(100))
  },
  mounted () { }
}
</script>

<style scoped lang='less'></style>
